package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Sysnotice;
import cn.wolfcode.trip.base.domain.Syspush;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ISysnoticeService {

    void save(Sysnotice sysnotice);

    /**
     * 高级查询
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);

    Object getContentByNoticeId(Long noticeId);

    int getSysnoticeByState(Long userId);

    List<Sysnotice> getSysnotices(Long userId);

    void setSysnoticeState(int state, Long userId);
}
